package com.cjm.one.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.common.result.Result;
import com.cjm.one.model.goods.dto.GoodsCommentDto;
import com.cjm.one.model.goods.entity.GoodsComment;
import com.cjm.one.model.goods.entity.GoodsCommentTag;
import com.cjm.one.model.goods.vo.GoodsCommentCountVo;
import com.cjm.one.model.goods.vo.GoodsCommentTagVo;
import com.cjm.one.model.goods.vo.GoodsCommentVo;

import java.util.List;

public interface GoodsCommentService {

    Result<Page<GoodsCommentVo>> listPageByGoodsId(Integer current, Integer size, Long goodsId, String sortOrder, List<Long> tagIds);

    Result<GoodsCommentCountVo> getTagByGoodsId(Long id);

    Result<List<GoodsComment>> getTopComments(Long goodsId);

    Result<List<GoodsCommentTag>> getTags();

    Result<Boolean> saveGoodsComment(List<GoodsCommentDto> goodsCommentDto);
}
